//
//  StatusToolButton.swift
//  微博项目
//
//  Created by zhang on 16/3/13.
//  Copyright © 2016年 jin. All rights reserved.
//

import UIKit

class StatusToolButton: UIButton {

    /*
    // Only override drawRect: if you perform custom drawing.
    // An empty implementation adversely affects performance during animation.
    override func drawRect(rect: CGRect) {
        // Drawing code
    }
    */
    override init(frame: CGRect) {
        super.init(frame: frame)
    }
    convenience init(image:String)
    {
        self.init(frame: CGRect.zero)
        self.setImage(UIImage(imageLiteral: image), forState: UIControlState.Normal)
        self.setBackgroundImage(UIImage(imageLiteral: "timeline_retweet_background"), forState: UIControlState.Normal)
        self.setBackgroundImage(UIImage(imageLiteral: "timeline_retweet_background_highlighted"), forState: UIControlState.Highlighted)
        self.setTitleColor(UIColor.lightGrayColor(), forState: UIControlState.Normal)
        self.titleLabel?.font = UIFont.systemFontOfSize(10)
    }

    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
}
